Fixed logic error, because fuck logic