Ac entity crash

fixes the crash that caused butterflies.js to crash when run in the AC
yes.