Fixed a bug with running the check