CDB-3186 wrong if