Fix unload problem Rails4