Fixed for empty case
Changed autoescape to be off.