fixed visualization bug where always one element too much was marked as skipped