fixed classcastexception