Fix dependencies not working on duplicate jobs