fixed bug. call to generate hash had too many parameters