fixed some bugs in YapRequest.php