Fixs from last commit

print automatically duplicate the last stack entry