fixed nullPointerException
Container
menu visible, Error: keeps displaying a new window while running