fixes some weird issues with module styles not being applied correctly