Fixing jade template bug