self:: is used outside class/method scope

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
Merge pull request #379 from echampet/bugfix

self:: is used outside class/method scope