FIX: possible crash when doing max(x) where x is an indexed field