Fixed a typo and scope null
typo