Fix mod syntax to latex mod