fix possible installation errors