fixed formula editor focus/unfocus bug