fixed rails-issue