fix shadowing of args argument. fixes #521