The comment says it updates the max entities to be 4.  :)  3 or 4 works, but probably should be consistent.