fixed line 225 in pop()