fix output control