weird errors cleanup