Fix register controller