various bugfixes of errors that occured when running frozen on ubnutu.