bugfix: incorrect argument indexing