correct fix for ticket 10676. this is a temporary fix until we overhaul the fold implementation.