fix package installation order