fixed the white space problem in app_cat