Fixing error in firefox that changes wrong row.