Fix a bug in resource parser when using the resource was named e.g. classroom