[PATCH] fixed use of invalid check types