Fixing condition for checking order status