patches for bugs 793996, 877199, 877262