Make the redirec_to make successfully work after update action