Fixed a bad bool check