Make starts_with well a weak ref in attempt to fix memory leak