Fixed bug on rode generate