CSM add if statement was not correct