Fixed some weird errors