fixed metadata bug