fixed the KVC bug