Fixed online spawn code.

Needs extensive testing to make sure conflicts were solved correctly.