Fixed some really weird errors.