Just fixed a bug in the param validation