Don't redeclare resource in unmount.