Fixed bugs in multi