fixed arrow down so histoy ends on an empty line