Fix warning in unit_access