Fix location header when creating new profile