add weird null check
add missing 'end'
try this nil check maybe?
add missing argument that broke tutor pdfs
fix potential tex error