fix error when there's no theme page