fix problem with changing z-stack width.