Core tick context fixed on setTimeout

The tick function did not recognized the this context