Fixes bug on dropdown_button due to bad index