Fixes a bug in the automation client