Fix error using fetch when collection's url is a method

To fix the issue mentioned in #30