rhogen api: runtime error fixed