Fix an issue with fold support.