fixes find-or-create to fail on wrong PailStructure type