Fix portal creation crash.
Merge bounds fix when creating portals.