Fixed pin.rb and user.rb