Fixed problem where resources were not being saved properly for new providers