fixed another error relating to paperclip gem