fix index to KEY