bug fix in sha