Fix to null selected cursor problem.