fixed bug, worked bad when the first column was 0