Fixed undefined variable:'recurring'