fixes working on ub