Quick fix. Toast error on save due to order of variables declared

Just a small fix for the saving bug