Fix check for proper division operator