fixing double buttons