fix installation bugs