Fix types in update handler.