temporary fix to make the compact(merge(compact))) work