fixed errors when no controls are present