fixed typo causing no commands to be written