fix generation of Repository service