Fix #10 check_activity