fix to incorrect variable call