Fix passing of GID for searching of private features

#6073