fixed: explicitly dereference array ref before pushing.