fix safari enter bug