fix view stack bug