Fixed variable name typo in callback