bugs in userticket.php fixed