fix indexing so that mysql initializes without error