Fix some bug in entab.c