fixed bug on index.erb