Fixed logic error if admin closes order