Fixed the replies issue and some write to cache