Fix variable name for ext