fix bug from linearcommand sending