Update checkParam.m