fixed to_param issue