fix for loading styles correctly