Fixed a index bug in userhandler.php.