fixed the var which holds the function to scope styleSheets