Fixes in gemfile and deployment