fix cache delete and clear position