Fixed the bug for multiple windows

writeRAD export for base surfaces with multiple windows is fixed.