fixed sume bugs in layout.jade