fix for cursor