Fixed use of write context command in comparison