Fixed a bug with undefined controller name.