Corrected getMD5 method