fixed setCursor