fix merge metadata form
add where in condition