fixed duplicate storing.