Fixed parenthesis error in main_loop call