fix bug on popTo