Fixed a bug that sometimes occurred when using the plugin in non dev environment.