fixing VERY weird errors