Fix the build by calling properly the methods of style factory when creating style objects.