crash when accessing site settings

this only seems to happen when you visit each sidebar tab in order. weird.