move ran = true after method call
Merge pull request #187 from flightjs/minor_tweak_to_once

move ran = true after method call