bugifx undefined onEverySecond