Fix bug in prettyWhere calculation