@fixbug: if entity detach it will not update current frame