fixed a bug introduced by change to bool