plot initialization bugfixes