[FIX] fixes phase creation crash. (IMPORTANT)

this fixes the problem on startup, i've seemed to miss this one out,
creates the phases for the map. IMPORTANT