some major bugs were fixed.
typo