fix update method in storage