Bug fix: Import rules fails in some scenarios