fix legacy layout.jade