fix corrupt variable call