Fixed logic error

asdfasd