Fixed actions for too many end statements.
Merge pull request #7 from godp1301/master

Fixed broken plugin due to too many end statements