Fix undefined variable e