diff --git a/generate_headers.py b/generate_headers.py
index 7befadb107d313bd686572d4ed791de765358ecc..4c8340d142e1384fd6e85bdcd0275762aee2b598 100644
--- a/generate_headers.py
+++ b/generate_headers.py
@@ -20,8 +20,8 @@ if __name__ == '__main__':
 			update = 'Last update: ' + update
 			authors_list = ''	
 			for author in authors: 
-			    first_name = author.replace(',','').split()[1] 
-			    last_name = author.replace(',','').split()[0]
+			    first_name = author.replace(',',' ').split("  ")[1] 
+			    last_name = author.replace(',',' ').split("  ")[0]
 			    authors_list = authors_list + first_name + ' ' + last_name
 			    if authors.index(author) < len(authors) -2 :
 			        authors_list = authors_list + ', '