fixed an error in the eg.models