fixed bug in action definition