Fix the bug of Ruby on Rails