fix a bug with components that doesn't have styles