Fixed md5 specific bugs on client side