fixed bug with reading the field of class(generic type)