appStorage bugfix