fixed: generating option did not work correctly