bug arising from newer paperclip version