Bugfix use extend instead of append