bug fix for expect login prompt