bugfix to ubuntu script