fix repository bug in services