Move one line of code so that correct program activity is logged
Merge pull request #304 from Atheros1/master

[Minor] Move one line of code so that correct program activity is logged