fixed disable selection which was deprecated