Issue was with an uninitialized C which wasn't multiplying zero nicely.