fix typos in allocation of int and phase buffers