fixed plotting