Fix reading empty layout on Windows