fix some bug with memory dependency