fix style loading issue