Fixed some errors in the checks