Fix attempts check