fixed a bug in hit processing