Fixes issue with arrayFind() on entities