fixed bug in storage that caused multiple event callbacks