Fix rendering weirdness