Fixed incorrect var name. #857