Fixed a bug in dropdown buttons