fixed bugs that did not load style correctly