Bugfix manage_gendev.