fix jade with loops