Cleanup of uid bits.