Fixed fatal errors in control.

Fixed a few fatal errors in control that would prevent Roles from working.