fix trigger bug when using hash