fix bug in clear stack