fixed userContext error in collector thread