Minor bug fix with cursor