fix bug that the click handler will stoped when when moved map