Fix AR error when password is too short. Closes #537.