fix automatic install method