fixed handling of previously entered values. closes #1