Fix source stack handling.