typeof block fix