fix up weird errors