this fix was needed to make nested resources work