Fix the clear method not clearing every line on the way up