small fix for reoder items

Now the function for reorder items doesn't work. In the current pull request there is small fix for this problem