Fixes pymol and jmol output to not crash