fixed row 0 bug