fix selector space issues