fix init problems