Fix compass compile fail when start