bug fixed : rails 4