Fix bad param error