Fixed issue with update prepared statement