fix error at ends of chroms