fix placement referring to deleted rows

Signed-off-by: Jan Dvořák <mordae@anilinux.org>