invalid check fixed