Fixed click event propagating to the overlay issue.