Pet: fix setPetData method. Close #168.