Fix selectors with dots

Fix #318