Fixed error in substitution command