remove undefined times method from process_running condition
fix template variable replacing naming error