correclty clear cache when changing pos