fix draw update bug