Removed unnecessary dimension on u and v.