fixed empty else bug in Control.g