workaround for buggy cursor context