Fixed a bug that make compilation error reports as correct