fixes paperclip attachment error