Fixes another bug with maxitems in alternate mode