Fixing bug in example controller