bugfix about memory.enchant.js