Fixes a bug when opening Software Centre more than 1 time.