Fix decomposition error on Windows