paperclip bugs of scaffold generator fixed