You also need to add it to the dictionary in the MarginFactory.