fixed error message, when type args could not be inferred