Fixed case where table is 0 or less than max on store calls