Fixed userID indexing