Bug fixes in control, prescribe, and register