fixed bugs of liberphp.php migration