fixed bug #242 by resetting the input instead of refreshing+expanding