I don't know why the browser thing happened but stuff spawning outside the screen was just because I made the spawn range to large, my bad.