Fixed: some bugs on the <?php