fix example controller code