fixed wrong error message for array assignmetn