Fixed the bug I found. Not tested, should work

You know, the bug I posted in the MCF.