Fixed menu not working in debugmode