bugfixes in plotting and print methods