fixed sume more bugs in layout.jade