fixed corner case for first row