Fix m2m signal recognition issue on activities

Close #318.
returns