Fixed error printing FATAL and ERROR messages