Fixing a bug with mustache template