fixed non-existent row + added debugging