Fix two assigning errors