Fixed gate portal bugs