fixing md5 calculation bug