Removed dependency on legacy 2.2 Assignment capability and changed it to the correct permission.
Fixed warning about undefined assignment variable