Fixes Stylsheet ref so it is relative not local