Bug fix: push to scoped finalarray instead of global one