fixed himasterd.c