fixed paperclip bug