Fixed UpdateResource