fix uncaught exeption in update