Fix for the MapPort compilation error