fixed /learn memory problem