fixes paperclip problems