fixed L not defined in plotExact