fixing storing bug