master: fixed infinite loop error.

fixed  once() method call can cause inifinite loop. #8 
same as above