Fix for automatic actions

Currently automatic actions are not working because of a typo -- it just crashes... This fixes this issue.