Dependency: fixed bug spotted by Tomas