Fixed a small bug on the controller name parsing