Fix broken logic in mg_word_clicked().  fixes #522