finally fixed loadStyles