fix of cabal writing