fix stupid nvd3 bugs