Fix type signatures.