Fix stupid problem with nil @global_tpl