fixed a small bug when user click div but not text