Fixed some serious errors.