Added check to invalid multiple IDs