fix cache calculate error