fix some resource change