fixing reactive cursor issue