Fixed segault in parseArguments

parseArguments was called before menu_bar existed.