fix some local error