fixed bug in pants decomposer