fix empty mode check, count is only incremented for modes with target