fixed a bug in the way icon are retrieved