fix formation creation