Fix duplicated resource warning.