fixed app class bug.