fix paperclip bug