fix css bug causing inconsistent styling on reload