Workaround for mpl module deprecation