fixed a bug in h4