fixed bug in displayy window