fix cache persistent bug