Fixed #110, max_memo_size is undefined for memo input