apro_gen demo application: bugfix