fixed timer update and entity flip