fixed wrong installation order