fix compilation error messages bug

issue #179