styles applied in wrong order