Fix for 32-bit machines with uids