paperclip bugfixes