fix compile error check