fix bug on first row