1. fix bug in app_category;
2. refacoring;