Fix major bug

Fix bug in custom.php