Comments on D-term inflation