fixed a bug with persistant storage