fixed issue with multiple command being sent