fix init sequence