fixed a bug where script would break on empty offset lists, v 0.8.2