Fixed error with addSelect

fixed error with auto labeling where ID wasn't defined.