fix param check