Fix for accurate extraction of user id.