metada keeps getting wiped