Added explanation and work around for id of undefined