fix on context retrieve during send_metadata