Fixed some weird errors.