IF block fix