fixing weird errors