fixed some bug with eeprom prog mode