fix bug of not setting yCursor dasharray properly