Added a bracket in compassactivity