Paperclip fix for production mode