Fix uint function when called on uints