Fix dependency install order