Fix bug in previous change: allocate the correct size