errors pointed out by Jean-Baptiste Pressac in http://markmail.org/message/iygk44hbpf2jsec2