boolean logic fix :)