fix classcastexception