Fix execution bug that fails to select the correct stackframe