bug fix

For random length hash