Fix flag spawning

Flag now doesn't spawn underground, by using the regular global
function.