fixed the weird errors