fix ega types
fix types II