Fixes password reset for agents.