fix init in compare