fix for event handling in repos controller