Fixing a couple of bugs in enable.php