Fixed issue with entered text being removed.