A generalization of a result of Kazhdan and Lusztig