Fixed bug in context-sensitive rule