fixed bug: don't check mode action if it is inactive