Fix stack size (take 2) (bug #3706)