[core] Fix dependencies.