Fixes a wrong range calculation in style sheet parser