Fix undefined variable on function dropdown()