Fixed missing double quotes in checks that was causing it to be ignored.