fix small bug with generating portal theme