fixed portal generation