Bug discoveries and fixes