I'm sorry. It was my fault. My search ranges were broken for some reason, they were empty. It works well with non-empty ones. =) Still, sword should perhaps not crash with an empty range but instead just not search, or search without range. Could you fix this, Joachim? Thanks. mg