Fixed check if metadata is changed.