Fixed undefined controller error.