fix pb nil attribute