[BUGFIX] Fix syntax and logic errors in BE Fluid templates