Undefined variable in custom default.php and query doesn't work

We will fix it. Thanks for report.