Fixed invalid arguments in EntityRef