Fix bug with writing keywords, introduced in commit 0e92c99d93f722db7b61c30a08222b35a264bd30