fix first row bug