fix repo controller generation