added delay after setControlMode to prevent race condition