fix bug with memo