update check_internal
fix space