Fix param check

Fix param check