fix unit position count in URL hash