md5 sum function fixed a bit