Fix bug in shutter control.