fix create temporary tables