Fix heredoc end