Fixes issue when number of shortcuts > 1000