Fix resource model initialization