fix error on user repository