Fix broken factory, wasn't returning anything