fixed scope for $src