Fix matplotlib interactive backend error