fix typo APPATH into APPPATH