fixed bug in hop1.c