Fix bugs that leads free* fail