Please make `src` a local variable, i.e. declare it within the `if` block. Dito below.