fix picle errors