Fix element selection check if block element is selected