fixing typo that added a single quote after a check