fixed butons debouncing.