Fixed id bug (incremented while filtered device)