Permit function getting "Pancake: Invalid Signature"

I am getting always a "Pancake: Invalid Signature" if I send a transaction with eth-permit.

The errors occurs from this contract:

Error Message: execution reverted

require(recoveredAddress != address(0) && recoveredAddress == owner, 'Pancake: INVALID_SIGNATURE');


Has anyone experience with eth-permit?

How are you generating the permit? What is the token? Permits are slightly different depending on the token.