added max value for local icons.