Fixed undefined variable e error