Fixed typo for variable named "extension"