Fixed error of using '' for mode, must be Text Raw or Command