fixed tty provisioning bug