Range bug fixed