resolve issue on lib/scripts.php at line 14