Fixing newResource options passing
Merge branch 'fixNewResource'