fix selector
take into account padding