fix active_admin and paperclip22 bugs