fix init function not found