fix validation of null params