fix check introduced in a16e2cd