fix assignment of scalar to table