Added check for inactive selection to not be displayed.