fix snapshot management