bugfix for pet loading, closes #614