fix for paperclip