fix shape rendering of lines to have a max