Fixed wrong ordering of dependencies.