fix build bug in internal.hpp