Fixes a bug in software-centre.
Fixes #280.