Minor MySQL index check fix