fix paperclip issue