Fix bug that when using https certian buttons wouldn't work