fix player spawn and other things