Bug fixes

Some bugs fixed. Multiplayer fix