Bug 145 I have no idea why this part of the code had broken but here's a fix