Bugfix for ubuntu