Bugfix for #768

Variable naming :(