Added a workaround for matplotlib strange behaviour