Bug fix, fixed undefined appObj issue.