Fixed the params check