fixing find in ref