fix query to find binary