Fixed logic error in posting