chg: dev: Added more stuffs into memory module to debug the nasty bug