Update defaults.php

fixed undefined issue of line 662 & 693