Fixed action mode bug

Fixes #34