avoid undefined class