Fix corruptin in app_cut (bug #1084)