fixed check variable declaration with ClassType