Fix with persistentid

The persistentid was not set when controllers opened.