A logical issue fixed in update.php