fix compile messages issue that caused package uninstallable