fixed nasty edge case on enter press