fixed tutorial macros
(cherry picked from commit b9de4fa167857101cb7914324325bfdabbab9474)