fix memo type