fix index query - display maximun revision