Fix horrible logic errors