fix nested controllers