fixes paperclip bug