Fix return type incompatibility.