Fixed weird errors