Fix bad param name and add log