Fixed the dropdown workings