fixed invalid return in rule