Fixed initialization of Ep