Refactoring problems with rename

When i use for example my page is “try1” and i want to rename it to “try2” an this page is a subpage for test

#set ($source = $services.model.resolveSpace('test.try1'))
$services.refactoring.rename($source, 'try2').join()

this is the code… after i execute it… the page goes hidden and if i try to acces “try2” i get “The page isn’t working” error