Fix ucp.php bugs (thanks to Sherlock).