fix: misassignment of variable