Fixed to check resource table.