Fix issue with AnyRef