Fixes bug when dropdown not selected