fixed issue with mistyped endpointId