fixed double prompt bug