fix bug in generate_meta_tags method