fix max insert thread number, maximum 1024 for a block