fixes error during writeout of provider's definition to file