fixing critical bug on malformed action