Check $action
fixed #47