Fix scoping issue (caused Flash version not to work as expected)