bugfix: reset temparray in divide