fix some annoying errors