fixed Resources/update-data.php