fixed return on pop