Bug fix for failing to get value of default selected index