Fixed Problem with temp table update