fix some broken stuff