Fixes logical check. Silly me! ><'