Bugfix (define nodes before mapgen)