Fix nasty CSS resize bug