Removing AnyRefClass.tpe seem to fix the problem.