       emit(eventData, eventName)
 
   else
-    type = types.getSingularType(lastUrlPart)
+    collectionName = camelize(lastUrlPart)
+    type = types.getSingularType(collectionName)
     # is this a valid collection?
     if type
       eventData = {
         requestId: requestId,
         method: method,
-        collection: lastUrlPart,
+        collection: collectionName,
         data: data
       }
 

      if refIds.length
        eventData = {
          method: method,
          collection: collection.rel,
          refIds: refIds
        }
  return eventData

    # collection / id from the request URL.
    urlParts = xhr.responseURL.split('/')
    refIds = [parseInt(urlParts[urlParts.length - 1])]
    collection = camelize(urlParts[urlParts.length - 2])

    type = types.getSingularType(collection)
    # is this a valid collection?
