Fix bug which resulted in wrong-sized icons to be selected for inclusion