Fix functions signatures.