Bugfix in update type detection.