fix bug in alternate separator
reset cache at end of reset