UID is working, except for last dimension