Fixed an issue where the last outline was not drawn most of the time.