Fixing bug in rails 4