fixed typo from porting procedural code into ElggEntity