fixed search ranges issue with commenting hack