Metamask wont approve transaction

Anyone have a fix for this issue ?
Invalid transaction envelope type: specified type “0x0” but including maxFeePerGas and maxPriorityFeePerGas requires type: “0x2”