Bug fixed. Caused by poor memory cleaning