Fixed bug when prompt gets shown/hidden