Fix boolean logic fuck up