Fixed some issues with reduce initializing