fixing an issue in registry.content() method of carbon module