Fixed actions for too many end statements.