Make compatible with old wg version