fix minor logic error (haha)