Fix frameworks cursor leaks