fix rule for local components