fix parenthesis of emit statements