Update pica with bug fixes