Fix variable scoping :bug:
Release version 2.1.3