Fix error when visiting "cp/settings".

#5645