cursor bug fixed