fix memorize