Bug fix for ngEnter