User repository fix