Do not modify profile id while the page is still running. Fixes #159