Accounts-ui Reset password

Installing accounts-ui package and testing it out - but I am having problems with reset password.

the first time it is called it reports “Internal server error” press the button again and it is ok and reports “Email sent”.

Any suggestions?