Check shared services before filtering
Fix rb tree query problem