Fixed the url issue with paperclip