fixes double corrpution on sharing storage