fixed Cannot redirect to a parameter hash! error