Fix return type mismatch