TBD-677: subtask TBD-987 fix a bug of pig .