world2d sleep method fixed