FIXED: A typo in the indexing. Should use "m" instead.