Fix error when renaming an app