bug fix on pickle