Another fix to get automation to work.