passmanager logic fix