Fixed Paperclip crash bug