Fix for automatic actions

Currently automatic actions are not working because of a typo -- it just crashes... This fixes this issue.
Merge pull request #27 from alex3305/automatic-actions-fix

Fix for automatic actions