fix bugs in multi player