fixed condition for proper comparing spp_app_id