fixed idKey not being looked up correctly
scope.id switched to scope.idKey
fixes issue #208