Fixed restricting activity recognition