fix enter behavior