fix parenthesis of apply