deadloop when pop fixed.