Fast and easy fix for the flying portal bug

Later I will add a better method.