fix asynchronous issue with storage module