Fixed bug. 'm' was never allocated.