bugfix in 3.1 branch

i forgot to switch the branch before i updated the file ;) therefore it's the same as https://github.com/p7media/DataObjects-as-Pages/pull/1