Restacking bug fixed