fix sync issue when trapping focus. removed unused function in query.