Include the baseApp when running onAppend function